import { request } from "./request";

// 登录
export function login(username, password) {
  return request({
    url: "/login",
    method: "post",
    data: {
      username,
      password
    }
  });
}

// 注册
export function register(username, password) {
  return request({
    url: "/register",
    method: "post",
    data: {
      username,
      password
    }
  });
}
